#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include<stdlib.h>
#include<time.h>

#define _CRT_SECURE_NO_WARNING
#include<stdio.h>
int main()
{
	int j, k = 0;
	for (j = 0;j < 3;j++)
	{
		for (k = 0;k < 3;k++)
			printf("%d %d\n", j, k);
	}
	return 0;
}